<%@page contentType="text/html;charset=UTF-8"%>
<%@page pageEncoding="UTF-8"%>
<%@ page session="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Formulario usuario</title>
</head>
<body>
	<h1>Formulario usuario</h1>
	<br/>
	<fieldset>
		<legend>Datos usuario</legend>
		<form:form modelAttribute="usuario" action="" method="POST">
			<p>
					<form:label	for="username" path="username" cssErrorClass="error">Nick: </form:label><br/>
					<form:input path="username" /> <form:errors path="username" />			
			</p>
			<p>	
					<form:label for="name" path="name" cssErrorClass="error">Nombre: </form:label><br/>
					<form:input path="name" /> <form:errors path="name" />
			</p>
			<p>
					<form:label	for="surname" path="surname" cssErrorClass="error">Apellido: </form:label><br/>
					<form:input path="surname" /> <form:errors path="surname" />			
			</p>
			<p>	
					<form:label for="email" path="email" cssErrorClass="error">Email: </form:label><br/>
					<form:input path="email" /> <form:errors path="email" />
			</p>
			<input type="submit"/>
		</form:form>
	</fieldset>
</body>
</html>